LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_C_INCLUDES += $(LOCAL_PATH)/ffmpeg/libavcodec     \
                    $(LOCAL_PATH)/ffmpeg/libavformat    \
                    $(LOCAL_PATH)/ffmpeg/libavcore      \
                    $(LOCAL_PATH)/ffmpeg/libavfilter    \
                    $(LOCAL_PATH)/ffmpeg/libavutil      \
                    $(LOCAL_PATH)/ffmpeg/libpostproc    \
                    $(LOCAL_PATH)/ffmpeg/libswscale     \
                    $(LOCAL_PATH)/ffmpeg
                    

LOCAL_SRC_FILES := com_freshui_ffmpeg.cpp
LOCAL_LDLIBS := -llog -ljnigraphics 

LOCAL_SHARED_LIBRARIES := libffmpeg

LOCAL_MODULE := ffmpeg-jni

include $(BUILD_SHARED_LIBRARY)
include $(call all-makefiles-under,$(LOCAL_PATH))
